##########################################################################
#
#                Admin Over IM
#
##########################################################################
#  <Copyright>
#    Copyright (C) 2008  Basov Alexander
#
#  <Unit> Makefile.am
#    <Purpose>
#    <Effects>
#    <Perfomance>
##########################################################################
#  $Revision: 117 $ $Author: coopht $
#  $Date: 2008-03-09 09:16:38 +0000 (Sun, 09 Mar 2008) $
##########################################################################

include $(top_srcdir)/Makefile.common

LD_COMMON_FLAGS= -L$(top_builddir)/source/libs/jabber/
COMMON_LIBS= -lxml2 $(top_builddir)/source/libs/jabber/libjabber.la
COMMON_CXX_FLAGS= -I$(top_srcdir)/source/libs/jabber/

##check_PROGRAMS = \
##	connect_test \
##	j_create_stream_test
check_PROGRAMS=	main

##TESTS =	\
	connect_test \
	j_create_stream_test
TESTS= main


### Test 1

##connect_test_SOURCES = connect_test.cpp
##connect_test_CXXFLAGS = $(COMMON_CXX_FLAGS)
##connect_test_LDFLAGS = $(LD_COMMON_FLAGS)
##connect_test_LDADD = $(COMMON_LIBS) -lpthread

### Test 2

##j_create_stream_test_SOURCES = j_create_stream_test.cpp
##j_create_stream_test_CXXFLAGS = $(COMMON_CXX_FLAGS)
##j_create_stream_test_LDFLAGS = $(LD_COMMON_FLAGS)
##j_create_stream_test_LDADD = $(COMMON_LIBS)

### Test 3

##j_read_write_test_SOURCES = j_read_write_test.cpp
##j_read_write_test_CXXFLAGS = $(COMMON_CXX_FLAGS)
##j_read_write_test_LDFLAGS = $(LD_COMMON_FLAGS)
##j_read_write_test_LDADD = $(COMMON_LIBS)

main_SOURCES = main.cpp
main_CXXFLAGS = $(COMMON_CXX_FLAGS)
main_LDFLAGS = $(LD_COMMON_FLAGS)
main_LDADD = $(COMMON_LIBS) -lpthread

